home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #8 / Software USA Volume 4.08.iso / mac / LifeStyles / ComicBase / ComicBase.sea / ComicBase 3 Mac Demo / ComicBase 3 Demo.rsrc / LENS_151_Unknown Title < prev    next >
Text File  |  1998-02-04  |  7KB  |  115 lines

  1. ItemType: WIND
  2. Rect: 280,187,744,472
  3. Style: Dialog
  4. HasTitleBar: TRUE
  5. HasZoomBox: FALSE
  6. Name: Unknown Title
  7. WhiteColor: -8739,-8739,-8739
  8. Script: --on windowEvent  wdID,wdName,objNo,objName,objValue¬¬Global titleList, currentImportTitle¬global gWindowPositions¬Global selectedTitleNums¬¬---------------------¬-- This is window #19¬---------------------¬¬if objValue="Open" then ¬  ¬  set cursor to watch¬  ¬  -- Restore old window position¬  put OldWindowPosition(19) into windowRect¬  if windowRect = empty then centerWindow wdName¬  ¬  wsSet wdID, "Message", "Text", "The title, “" & currentImportTitle & "” is not in the ComicBase."¬  ¬  -- Set up the comic list, pop-up¬  put -1 * BinarySearch(titleList,currentImportTitle) into selectedTitleNum¬  put selectedTitleNum into selectedTitleNums¬  put line selectedTitleNum of titleList into theTitle¬  ¬  put Capitalize(char 1 of currentImportTitle) into firstChar¬  if firstChar >= "A" and firstChar <= "Z" then put CharToNum(firstChar) - 63 into alphaSelectPos¬  else put 1 into alphaSelectPos¬  wsSet wdID,"alphaStrip","Selection", (alphaSelectPos & ",1")¬  SetNewList titleList, alphaSelectPos, wdId, false¬  ¬  wsSet wdID,"0","Properties","Comictitles_Selection:" & (selectedTitleNums - (wsGet(wdId,0,xlistStartPos)) + 1) & return & "OK_Disabled:" & (theTitle = empty) & return¬  wsSet wdID,"typedTitle","text",(line selectedTitleNums of titleList)¬  wsSet wdID,"typedTitle","Selection","0,200"¬  ¬  if wsGet(wdID,"ComicTitles","SelectionText") ≠ empty then¬     put line 4 of fld "publisher" of cd selectedTitleNums of bg "Title" into thePubDate¬  wsSet wdID,"0","Properties","Choose_Disabled:False" & return & "Skip_DefaultItem:False" & return & "Choose_DefaultItem:True" & return  & "DatesPublished_Text:" & thePubDate  ¬ else¬    wsSet wdID,"Choose","Disabled", "True"¬    wsSet wdID,"Skip","DefaultItem", "True"¬    wsSet wdID,"Choose","DefaultItem", "False"¬  end if ¬  ¬  set cursor to arrow¬else if objValue="Close" then ¬  -- save the window position¬  put "19" & tab & wdName & tab & wsGet(wdID,"0","Rect") into line 19 of gWindowPositions¬  ¬end if¬¬--end windowEvent¬
  9. Result: i3_TextOfSelection¬i3_Selection
  10.  
  11. ItemType: PUSH
  12. Rect: 373,169,453,189
  13. AutoSize: FALSE
  14. Name: Skip
  15. CancelItem: TRUE
  16. AutoClose: TRUE
  17. Balloon: Click here to ignore this unknown title’s information and skip on to the next title to be imported.
  18. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬global theCreatedTitle, selectedTitleNum¬¬put 0 into selectedTitleNum¬put empty into theCreatedTitle¬--end mouseUp
  19.  
  20. ItemType: PUSH
  21. Rect: 373,141,453,161
  22. AutoSize: FALSE
  23. Name: Choose
  24. DefaultItem: TRUE
  25. AutoClose: TRUE
  26. Balloon: Choose a title from the list above and click here to add the unknown title’s information to the title you’ve chosen.¬¬This is useful if the file you are importing lists the title slightly differently than the ComicBase does.
  27.  
  28. ItemType: LIST
  29. Rect: 10,104,361,249
  30. TextFont: Geneva
  31. TextSize: 10
  32. Name: ComicTitles
  33. DoubleClickItem: 2
  34. Text: 
  35. Balloon: This is a list of all the titles in the ComicBase. Choose title from this list then click “Choose” to have the unknown title’s information added to the one you selected (for instance, the import file may list the title under a slightly different name).
  36. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬global titleList¬¬put wsGet(wdID,"ComicTitles","SelectionText") into theTitle¬¬wsSet wdID,"TypedTitle","Text",theTitle¬wsSet wdID,"TypedTitle","Selection","0,200"¬¬if theTitle ≠ empty then¬  put find(titleList, theTitle, "Line","Exact") into whereFound¬  put line 4 of fld "publisher" of cd whereFound of bg "Title" into thePubDate¬  wsSet "Unknown Title","0","Properties","Choose_Disabled:False" & return & "Skip_DefaultItem:False" & return & "Choose_DefaultItem:True" & return & "DatesPublished_Text:" & thePubDate & return¬else¬  put find(titleList, theTitle, "Line","Exact") into whereFound¬  put line 4 of fld "publisher" of cd whereFound of bg "Title" into thePubDate¬  wsSet "Unknown Title","0","Properties","Choose_Disabled:True" & return & "Skip_DefaultItem:True" & return & "Choose_DefaultItem:False" & return & "DatesPublished_Text:"  & return¬end if ¬--end mouseUp¬
  37.  
  38. ItemType: TEXT
  39. Rect: 10,41,449,67
  40. TextFont: Geneva
  41. TextSize: 10
  42. Name: 
  43. WhiteColor: -8739,-8739,-8739
  44. Text: Do you want to add it as a new title, choose a different title to store its information under, or skip over this title?
  45.  
  46. ItemType: PUSH
  47. Rect: 373,104,454,124
  48. AutoSize: FALSE
  49. Name: New…  N
  50. Balloon: Click here (or type Command-N) to add this unknown title as a new title in the ComicBase.
  51. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬Global selectedTitle, selectedTitleNum¬Global theCreatedTitle, gNewName,gNewAbbreviation¬Global copyrightInfo, matureReaders, newPublisher¬Global currentImportTitle¬¬put empty into selectedTitle -- New Title¬put currentImportTitle into theCreatedTitle¬Get WindowScript("Comic Title","False", "True") -- Don't show Remove button¬if it ≠ empty then¬  wsSend "Unknown Title","0","Close"¬  set cursor to watch¬  lock screen¬  set lockmessages to true¬  put line 2 of it into gNewName¬  if oldName = empty then put gNewName into selectedTitle¬  put line 3 of it into newPublisher¬  if newPublisher = "Other…" then put line 4 of it into newPublisher¬  put line 5 of it into gNewAbbreviation¬  put line 6 of it into copyrightInfo¬  put line 7 of it into matureReaders¬  send SaveTitle to cd btn "SaveTitle" of cd 3¬ send openCard to this card  -- To redraw screen & set color¬ end if¬--end mouseUp
  52.  
  53. ItemType: TEXT
  54. Rect: 10,8,451,40
  55. Name: Message
  56. WhiteColor: -8739,-8739,-8739
  57. Text: The title, “” is not in the ComicBase.
  58.  
  59. ItemType: LINE
  60. Rect: 373,131,453,132
  61. BlackColor: -26215,-26215,-26215
  62.  
  63. ItemType: TEXT
  64. Rect: 10,85,45,97
  65. TextFont: Geneva
  66. TextSize: 9
  67. Name: TypePrompt
  68. WhiteColor: -8739,-8739,-8739
  69. TextStyle: Bold
  70. Text: Title:
  71.  
  72. ItemType: TEXT
  73. Rect: 45,83,345,99
  74. TextFont: Geneva
  75. TextSize: 9
  76. Name: TypedTitle
  77. LockText: FALSE
  78. KeyFilter: SendTextNoArrows
  79.  
  80. ItemType: PICT
  81. Rect: 10,248,361,263
  82. AutoSize: FALSE
  83. Name: AlphaStrip
  84. Grid: 27,1
  85. Logic: Radio
  86. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬global titleList¬¬SetNewList titleList, objValue, wdID, true¬¬put wsGet(wdID,"ComicTitles","SelectionText") into theTitle¬¬put empty into pubDate¬if theTitle ≠ empty then¬  put find(titleList, theTitle, "Line","Exact") into whereFound¬  put line 4 of fld "publisher" of cd whereFound of bg "Title" into thePubDate¬end if¬wsSet "Unknown Title","DatesPublished", "Text", thePubDate¬--end mouseUp
  87.  
  88. ItemType: LINE
  89. Rect: 11,248,360,249
  90. BlackColor: 4369,4369,4369
  91.  
  92. ItemType: TEXT
  93. Rect: 69,269,349,281
  94. TextFont: Geneva
  95. TextSize: 9
  96. AutoSize: FALSE
  97. Name: DatesPublished
  98. WhiteColor: -8739,-8739,-8739
  99. Text: 1993
  100.  
  101. ItemType: LBL
  102. Rect: 10,269,70,281
  103. TextFont: Geneva
  104. TextSize: 9
  105. TextStyle: Bold
  106. Text: Published:
  107.  
  108. ItemType: PUSH
  109. Rect: 373,258,453,278
  110. Name: Stop
  111. AutoClose: TRUE
  112.  
  113. ItemType: LINE
  114. Rect: 373,132,453,133
  115. Pen: White